[XEND] Fix HVM configuration parsing typo for certain cfg values.
authorAlastair Tse <atse@xensource.com>
Thu, 30 Nov 2006 15:41:35 +0000 (15:41 +0000)
committerAlastair Tse <atse@xensource.com>
Thu, 30 Nov 2006 15:41:35 +0000 (15:41 +0000)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/xend/XendConfig.py

index 5b54d79c26afbaefdf63267427b8f57893ba437c..3d79c657c91656e911e45ff77c3a5d0e15494198 100644 (file)
@@ -625,7 +625,7 @@ class XendConfig(dict):
             self['image'] = image
 
             for apikey, imgkey in XENAPI_HVM_CFG.items():
-                val = sxp.child(image_sxp, imgkey, None)
+                val = sxp.child_value(image_sxp, imgkey, None)
                 if val != None:
                     self[apikey] = val
 
@@ -1039,7 +1039,7 @@ class XendConfig(dict):
         self['image'] = image
 
         for apikey, imgkey in XENAPI_HVM_CFG.items():
-            val = sxp.child(image_sxp, imgkey, None)
+            val = sxp.child_value(image_sxp, imgkey, None)
             if val != None:
                 self[apikey] = val